package cn.exrick.xboot.modules.Information.serviceimpl;

import cn.exrick.xboot.modules.Information.dao.mapper.RiverTourHistoryMapper;
import cn.exrick.xboot.modules.Information.entity.RiverTourHistory;
import cn.exrick.xboot.modules.Information.service.IRiverTourHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 巡河历史表接口实现
 * @author lijian
 */
@Slf4j
@Service
@Transactional
public class IRiverTourHistoryServiceImpl extends ServiceImpl<RiverTourHistoryMapper, RiverTourHistory> implements IRiverTourHistoryService {

    @Autowired
    private RiverTourHistoryMapper riverTourHistoryMapper;

    @Override
    public List<RiverTourHistory> queryRiverHistoryByDateAll(Map map) {
        return riverTourHistoryMapper.queryRiverHistoryByDateAll(map);
    }

    @Override
    public Integer findTimeAll() {
        return riverTourHistoryMapper.findTimeAll();
    }

    @Override
    public String findKmAll() {
        return riverTourHistoryMapper.findKmAll();
    }

    @Override
    public List<Map> findXcCharts() {
        return riverTourHistoryMapper.findXcCharts();
    }
}